package com.yl.mine.di

import com.yl.common.network.RetrofitManager
import com.yl.mine.api.MineApi
import com.yl.mine.repo.MineRepo
import com.yl.mine.viewmodel.MineViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module

/**
 * Created by stew on 8/5/22.
 * mail: stewforani@gmail.com
 */
val mineModule = module {
    single { RetrofitManager.getService(MineApi::class.java) }
    single { MineRepo(get()) }
    viewModel { MineViewModel(get()) }
}